<?php
namespace app\admin\controller;
use think\Session;
use app\admin\model\Admin;

class Logout extends Common
{
    public function index()
    {
        Session::delete('username');
        Session::delete('aid');
        $this->assign([
            'error' => 0
        ]);
        $this->redirect('login/index');
    }
}